package com.cz.zslu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资讯头条
 * </p>
 *
 * @author 森森
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("zsl_news")
public class ZslNews extends SuperEntity<ZslNews> {

    private static final long serialVersionUID = 1L;

    /**
     * 是否删除 0：有效，1 删除
     */
    @JSONField(serialize = false)
    @TableLogic
    @JsonIgnore
    @ApiModelProperty("是否删除 0：有效，1 删除")
    private Integer state=0;

    /**
     * 主题
     */
    @ApiModelProperty("主题")
    private String title;

    /**
     * 内容
     */
    @ApiModelProperty("内容")
    private String content;

}
